<% if current_user.has_attendee? %>

<h1>Registrar trabalho</h1>

<% form_for(@work ) do |f| %>

	 <%= render :partial => "form", :locals => { :f => f } %>

		<p>
		  <%= f.submit "Enviar" %>
		</p>

	<% end %>

<%= link_to 'Voltar', works_path, :class => 'button' %>

<% end %>

